﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GetAttoneysDlg.aspx.cs" Inherits="Cases_GetAttoneysDlg" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>选择代理人</title>
    <link href="../css/f_css.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    #gv th
    {
        border:none;
    }
    #gv td
    {
        /*border: none none none none;
        border: hidden;*/
        border-top:none;
        border-left:none;
        border-right:none;
        border-bottom:solid 1px #EEEEEE;
    }
    .right
    {
        float: right;
    }
    </style>
    <script language="javascript" type="text/javascript" src="../js/jquery-1.2.6.pack.js"></script>
    <script language="javascript" type="text/javascript">
        // Note: rowindex 可能不会代表当前的行号，因为有行添加删除或移动的话则不行
        function onRowStatusChanged(chk, rowIndex) {
            var tr = chk.parentNode.parentNode;
            if (chk.checked) {
                tr.style.backgroundColor = "#d6e2f6";
            }
            else {
                tr.style.backgroundColor = "";
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="tableContaner">
        <asp:GridView ID="gv" runat="server" CssClass="table2" AutoGenerateColumns="False">
            <Columns>
                <asp:TemplateField HeaderStyle-Width="20px" ItemStyle-HorizontalAlign="Center">
                    <HeaderTemplate>
                        <input type="checkbox" onclick="javascript:checkAll(this);" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox runat="server" ID="chk" onclick='<%# "javascript:onRowStatusChanged(this, " + Container.DataItemIndex + ");"%>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="代理人名" DataField="Name" />
                <asp:BoundField HeaderText="工作证号" DataField="WorkNumber" />
                <asp:BoundField HeaderText="联系电话" DataField="Tel" />
                <asp:BoundField HeaderText="联系邮箱" DataField="Email"  />
            </Columns>
            <HeaderStyle CssClass="listhead" />
            <AlternatingRowStyle CssClass="alt" />
        </asp:GridView>
    </div>





    </form>
</body>
</html>
